import request from "@/request/api";

//1、岗位配置list表格页面
export function postConfigList(data) {
  return request({
    url: "/eam-service-system/post/queryPageList",
    method: "get",
    params: data,
  });
}
//2、岗位配置新增修改
export function postConfigAdd(data) {
  return request({
    url: "/eam-service-system/post/insertOrUpdate",
    method: "post",
    data: data,
  });
}
//3、岗位配置删除
export function postConfigDelete(data) {
  return request({
    url: "/eam-service-system/post/deleteById",
    method: "delete",
    params: data,
  });
}
//1、岗位人员list表格数据
export function postUserList(data) {
  return request({
    url: "/eam-service-system/postUser/queryPageList",
    method: "get",
    params: data,
  });
}
//2、岗位人员批量新增修改
export function postUserAdd(data) {
  return request({
    url: "/eam-service-system/postUser/insertBatch",
    method: "post",
    data: data,
  });
}
//3、岗位人员删除
export function postUserDelete(data) {
  return request({
    url: "/eam-service-system/postUser/deleteById",
    method: "delete",
    params: data,
  });
}

